<nav class="navbar-default navbar-static-side" role="navigation">
    <div class="sidebar-collapse">
        <ul class="nav" id="side-menu">

            <li class="nav-header">
                <div class="dropdown profile-element">
                    <a data-toggle="dropdown" class="dropdown-toggle" href="javascript:void(0);">
                        <span class="clear">
                            <span class="block m-t-xs">
                                <strong class="font-bold">{:session('session_admin_info')['user_name']} <b class="caret"></b></strong>
                            </span>
                        </span>
                    </a>
                    <!--<ul class="dropdown-menu animated fadeInRight m-t-xs">
                        <li><a href="javascript:void(0);">修改密码</a></li>
                    </ul>-->
                </div>
                <div class="logo-element">
                    BX
                </div>
            </li>

            {foreach :model('Menu')::getLeftMenus() as $key=>$vo }
            <li class="{$vo.active == true ? 'active' : ''}" >
                <a href="{$vo.url}">
                    <i class="fa fa-th-large"></i> <span class="nav-label">{$vo.label}</span>
                    {if condition="isset($vo.items)"}
                    <span class="fa arrow"></span>
                    {/if}
                </a>

                {if condition="isset($vo.items)"}
                <ul class="nav nav-second-level">
                    {foreach $vo.items as $k2=>$v2 }
                    <li class="{$v2.active == true ? 'active' : ''}">
                        <a href="{$v2.url}">
                            {$v2.label}
                            {if condition="isset($v2.items)"}
                            <span class="fa arrow"></span>
                            {/if}
                        </a>
                        {if condition="isset($v2.items)"}
                        <ul class="nav nav-third-level">
                            {foreach $v2.items as $k3=>$v3 }
                            <li class="{$v3.active == true ? 'active' : ''}"><a href="{$v3.url}">{$v3.label}</a></li>
                            {/foreach}
                        </ul>
                        {/if}
                    </li>
                    {/foreach}
                </ul>
                {/if}
            </li>
            {/foreach}
        </ul>

    </div>
</nav>
